<template>
  <view class="container">
    <image src="https://img.zcool.cn/community/0171f75c91b048a80121416851b74d.jpg@2o.jpg" class="background"></image>
    <view class="card">
      <text class="title">登录</text>
      <input type="text" placeholder="请输入账号" class="input"></input>
      <input type="password" placeholder="请输入密码" class="input"></input>
      <button class="button">登录</button>
    </view>
  </view>
</template>

<script>
export default {
  // Add any necessary data and methods here
}
</script>

<style>
.container {
  position: relative;
}

.background {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* Ensure the image covers the entire view */
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.button {
  width: 100%;
  padding: 1px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
</style>